package com.tang.controller;

import com.tang.sys.ResponseResult;
import com.tang.sys.service.IImagesService;
import com.tang.sys.service.IMenuService;
import com.tang.sys.service.impl.ImagesServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/background")
public class BlogBackgroundController {
    @Autowired
    private IImagesService iImagesService;

    //@GetMapping("/info")
//    public ResponseResult getImageTitle(){
//
//        return iImagesService.getImageTitle();
//    }

    //获取全部的轮播图
    @GetMapping("/getAllImage")
    public ResponseResult getAllImage(){
        return iImagesService.getAllImage();
    }

}
